<?php

include ("config.php");

if (empty($_GET["table"]))
{
    Header("Location: ListTables.php");
    exit;
}

Layout::showHeader($db->loadListTables());

Layout::printTable($db->loadList($_GET["table"], $_GET["search"]), $db->loadDescribe($_GET["table"]));

Layout::printDivider($db->divider);

Layout::showFooter();

?>
